package com.net.dao;

import java.util.List;

import com.net.model.Commodity;
import com.net.model.Provider;

public interface ProviderDao {
	public void save(Provider u);
	public void update(Provider provider);
	public boolean delete(Provider u);
	public List<Provider> getProviders();
	public Provider loadProviderById(int id);
	public List<Provider> searchList(String param1,String param2,String param3);
	public int getCount();
	public Provider loadProviderByName(String name);
	/**
	 * 查询列表
	 * @param currentPage当前页数
	 * @param perPage每页记录数
	 * @param orderType排序方式 dec或者asc
	 * @param orderName
	 * @return
	 */
	public List<Provider> getProviders(final int currentPage,final int perPage,final String orderType,final String orderName);
	/**
	 * 条件查询列表
	 * @param currentPage
	 * @param perPage
	 * @param condition查询条件
	 * @return
	 */
	public List<Provider> getProviderByCondition(final int currentPage,final int perPage,final String condition);
}
